/*eslint no-empty-function: ["error", { "allow": ["generatorMethods"] }]*/

const obj = {
  *foo() {}
};

class A {
  *foo() {}
  static *foo() {}
}